package ru.nsu.fit.iconveyor.conveyor.node;

/**
 * Input node of instructionconveyor. Has only output connections.
 */
public abstract class InputNode extends Node {
    public InputNode(String id) {
        super(id);
    }

    @Override
    public boolean isParallelExecute() {
        return false;
    }

    @Override
    public boolean isSingleExecute() {
        return true;
    }

    @Override
    public <T> NodeConnection<T> getOutputNodeConnectionByName(String name) {
        return super.getOutputNodeConnectionByName(name);
    }

    @Override
    public final int getOutputToInputRatio() {
        return 1;
    }
}
